import os

projectPath = os.getcwd()


def parse_xlog_to_log(file_name):
    cmd = '''
    /usr/bin/python {projectPath}/src/xlog/decode_mars_nocrypt_log_file.py {file_name}
    '''.format(projectPath=projectPath.split('/src')[0], file_name=file_name)
    os.system(cmd)


if __name__ == '__main__':
    parse_xlog_to_log('../download/logfile/'+'gowild_eve_ios_15911720114_25733_20190507000554_20190507.xlog')

